<template>
  <div class="app-container home">
    <el-tabs type="card" @tab-click="handleClick" v-model="activeTab">
      <el-tab-pane label="传染病疾病分类统计" name="categoryStatistics">
        <CategoryStatistics v-if="activeTab == 'categoryStatistics'" />
      </el-tab-pane>
      <el-tab-pane label="传染病报告科室统计表" name="departmentStatistics">
        <DepartmentStatistics v-if="activeTab == 'departmentStatistics'" />
      </el-tab-pane>
      <el-tab-pane label="传染病报告医生统计表" name="doctorStatistics">
        <DoctorStatistics v-if="activeTab == 'doctorStatistics'" />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import CategoryStatistics from './categoryStatistics';
import DepartmentStatistics from './departmentStatistics';
import DoctorStatistics from './doctorStatistics';

export default {
  name: "Report",
  components: { CategoryStatistics, DepartmentStatistics, DoctorStatistics },
  data() {
    return {
      activeTab: 'categoryStatistics',
    };
  },
  methods: {

    handleClick(tab) {
      console.log(tab.name);
    }
  }
};
</script>

<style scoped lang="scss">
.home {
  position: relative;

  blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #eee;
  }

  hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
  }

  .col-item {
    margin-bottom: 20px;
  }

  ul {
    padding: 0;
    margin: 0;
  }

  font-family: "open sans",
  "Helvetica Neue",
  Helvetica,
  Arial,
  sans-serif;
  font-size: 13px;
  color: #676a6c;
  overflow-x: hidden;

  ul {
    list-style-type: none;
  }

  h4 {
    margin-top: 0px;
  }

  h2 {
    margin-top: 10px;
    font-size: 26px;
    font-weight: 100;
  }

  p {
    margin-top: 10px;

    b {
      font-weight: 700;
    }
  }

  .update-log {
    ol {
      display: block;
      list-style-type: decimal;
      margin-block-start: 1em;
      margin-block-end: 1em;
      margin-inline-start: 0;
      margin-inline-end: 0;
      padding-inline-start: 40px;
    }
  }
}
</style>
